package com.prolestar.statistics.res;

import com.prolestar.statistics.domain.BasicPublicsent;

import lombok.Getter;
import lombok.Setter;

/**
 * apiNote
 */
@Getter
@Setter
public class PublicOpinionStatisticsRes {
    /**
     * 月份
     */
    private Integer month;
    /**
     * 总数
     */
    private int total = 0;
    /**
     * 完成数
     */
    private int numberOfCompleted = 0;
    
    
	public void add(BasicPublicsent b) {
		total +=1;
		if(b.getPsStatus() == 5) numberOfCompleted+=1;
	}

}
